package com.springboot;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ConfigurableApplicationContext;

public class MyApplication extends SpringApplication {


    @Override
    protected void afterRefresh(ConfigurableApplicationContext context, ApplicationArguments args) {
        System.out.println("容器刷新完毕");
    }

     public MyApplication(Class<?> clzz,String [] args){
        super(clzz);
        run(args);
     }


}
